import request from '@/utils/request';
// 创建订单
export function postOrderCreate(data) {
  return request({
    url: '/order/create ',
    method: 'post',
    data,
  });
}
// 订单详情
export function postOrderDelivered(data) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: data,
  });
}

// 订单列表
export function getOrderList(data) {
  return request({
    url: '/order/list',
    method: 'get',
    params: data,
  });
}

// 取消订单
export function postOrderCancel(data) {
  return request({
    url: '/order/cancel',
    method: 'post',
    params: data,
  });
}

// 生成支付二维码
export function postOrderQrcode(data) {
  return request({
    url: '/order/qrcode',
    method: 'post',
    params: data,
  });
}

// 支付订单
export function postPay(data) {
  return request({
    url: '/pay',
    method: 'post',
    params: data,
  });
}

